﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Tequila.Phone.Location.ReverseGeocoding.DTO
{
    [DataContract]
    public class LookupGeoNameResponse
    {
        private const string successStatus = "OK";

        public bool IsSuccess
        {
            get
            {
                return Status.Equals(successStatus, StringComparison.OrdinalIgnoreCase);        
            }
        }

        [DataMember(Name = "status")]
        public string Status
        {
            get;
            set;
        }

        [DataMember(Name = "results")]
        public List<GeoLocationInfo> Results
        {
            get;
            set;
        }
    }
}
